package com.smi.cn.satemachine;

import com.smi.cn.satemachine.ReturnVo.RmaTrigger;
import org.squirrelframework.foundation.fsm.Converter;

/**
 * Created by zhangyanfei on 2017/7/26.
 *
 * @author zhangyanfei
 * @date 2017/07/26
 */
public class ReturnTriggerConvertor implements Converter<RmaTrigger>{

    @Override
    public String convertToString(RmaTrigger obj) {
        return obj.name();
    }

    @Override
    public RmaTrigger convertFromString(String name) {
        return RmaTrigger.valueOf(name);
    }
}
